home *** CD-ROM | disk | FTP | other *** search
/ Medabots Cardz / Medabots CD Cardz Rokusho.bin / pc / assets / rokusho.dxr / 00305_Script_305 < prev    next >
Text File  |  2001-12-07  |  1KB  |  37 lines

  1. property myFile, useronline, resetscore
  2. global gotobrassurl, squam, thescore, gNetID, jumbo, beginscore
  3.  
  4.  
  5. on mouseUp me
  6.   --fez 7:12:01 amended to make the game work move on when fininshed
  7.   --useronline = (the environment).internetConnected 
  8.   --if useronline = #online then
  9.   if objectP(myFile) then set myFile = 0  --Delete the instance if it already exists
  10.   myFile = new(xtra "fileio")    -- Create an instance of FileIO
  11.   --  openFile (myFile, the moviePath &"info.txt",0)--Open the file with R/W access  
  12.   openFile (myFile, squam&"infor.txt",0)--Open the file with R/W access  
  13.   delete(myFile) --deletes the file
  14.   --  createFile (myFile, the moviePath &"info.txt") --creates the file again
  15.   createFile (myFile, squam&"infor.txt") --creates the file again
  16.   --  openFile(myFile,the moviePath &"info.txt",0) --Open the file with R/W access
  17.   openFile(myFile, squam&"infor.txt",0) --Open the file with R/W access
  18.   --  mySaveString = thescore --puts the contents of the field 'input' into the variable mySaveString
  19.   resetscore = 0
  20.   put resetscore into member("holdscore")
  21.   mySaveString = member("holdscore").text
  22.   writeString(myFile,mySaveString) --writes text to the file
  23.   
  24.   closeFile(myFile) -- Close the file 
  25.   myFile = 0 -- Dispose of the instance
  26.   if beginscore = 100 then
  27.     beginscore = 0
  28.   end if
  29.   
  30.   goToNetPage gotobrassurl, "_new"  
  31.   go to the frame - 1
  32.   -- else
  33.   -- set the blend of member("statusreport")=100
  34.   -- end if
  35. end
  36.  
  37.